{template nheader.html}

<div class="page-bar">
    <ul class="page-breadcrumb mylink">
        {$menu.link}
        <li> <a href="{dr_help_url(2712)}" target="_blank"><i class="fa fa-book"></i> {fc_lang('在线帮助')}</a> </li>
    </ul>
    <ul class="page-breadcrumb myname">
        {$menu.name}
    </ul>
    <div class="page-toolbar">
        <div class="btn-group pull-right">
            <button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
                <i class="fa fa-angle-down"></i>
            </button>
            <ul class="dropdown-menu pull-right" role="menu">
                {loop $menu.quick $t}
                <li>
                    <a href="{$t.url}">{$t.icon} {$t.name}</a>
                </li>
                {/loop}
                <li class="divider"> </li>
                <li>
                    <a href="javascript:window.location.reload();">
                        <i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
                </li>
            </ul>
        </div>
    </div>
</div>


<div class="note note-danger" style="margin-top: 20px;">
    <p>本功能用于检测本地核心文件与服务器最新版文件的差异</p>
    <p>本次检测中的文件强烈建议开发者不要去修改，否则会引起系统不稳定或者系统崩溃</p>
    <p>如果二次开发中需要变更核心文件的逻辑，需要提前向官方说明，再为你单独开放钩子或继承类，可提交建议类工单</p>
</div>

<form class="form-horizontal" action="" method="post" id="myform" name="myform">
    <div class="portlet light bordered">
        <div class="portlet-body">

            <div class="form-body" style="padding: 20px 0; text-align: center">
                <label><a href="javascript:dr_bf();" class="btn red"> 立即与服务器最新版对比</a></label>
            </div>

            <div id="dr_table_html" style="margin-top: 50px;text-align: center">

            </div>

        </div>
    </div>
</form>

<script>
    function dr_bf() {
        $("#dr_table_html").html('<div style="text-align: center"><img src="{THEME_PATH}admin/images/loading-mini.gif"></div>');
        $.ajax({type: "GET", url:"{dr_url('upgrade/bf_php')}",
           success: function (data) {
                $("#dr_table_html").html(data);
            }
        });
    }
</script>

{template nfooter.html}